package com.miyake.server.servlet;

import java.io.BufferedInputStream;

import com.miyake.client.datamanage.Data;
import com.miyake.server.DsData;
import com.miyake.server.dsaccess.NodeManager;

public class StoreCustom {
	public StoreCustom(BufferedInputStream bis, String key, String name) {
		DsData data = new DsData();
		byte[] b = new StoreOriginal(data, bis, key, name).getByte();
		
		data.setParsed(false); // The file has not been parsed yet.
		data.setSourceType(Data.SourceTypeFile);
		NodeManager.getInstance().createData(name, key, data, -1);
	}
}
